﻿using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xfm.Core.Auth
{
    public class UserManager
    {
        IHttpContextAccessor _httpContextAccessor;
        public UserManager(IHttpContextAccessor httpContextAccessor)
        {
            _httpContextAccessor = httpContextAccessor;
        }
        public void Login(string userName,string password)
        {
            //BaseDbContext dbcontext= (BaseDbContext)_httpContextAccessor.HttpContext.RequestServices.GetService(App.DbContextType);
            //var method = dbcontext.GetType().GetMethods().First(m => m.Name == "Set");
            //method = method.MakeGenericMethod(new Type[] { App.AppUserType });
            //var dbset= method.Invoke(dbcontext, null);
        }
    }
}
